Skip to content

Bump decimal to ~> 3.0#7

Merged
bluzky merged 1 commit into
bluzky:mainfrom
js-ms:chore/bump-decimal-to-3
Jun 2, 2026
Merged

Bump decimal to ~> 3.0#7
bluzky merged 1 commit into
bluzky:mainfrom
js-ms:chore/bump-decimal-to-3

Conversation

@js-ms

@js-ms js-ms commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

First off, thanks for valdi! It's been a really useful little library for us at Wenia.

Description

Bumps the decimal dependency to ~> 3.0.

The recent CVE-2026-32686 report confirms decimal needs to be upgraded. Pinning to ~> 3.0 makes sure downstream users get that change.

Note

Decimal requires Elixir ~> 1.12 and valdi's CI runs on elixir 1.10.3, happy to follow up on this if we need a CI Bump, Just let me know.

I think this is a breaking change for downstream users on decimal ~> 2.0. You'll probable need a 0.7.0 release.

Tests were verified locally.

Shoutout to @estebanz01 for spotting this one for me 🙏

Summary by Sourcery

Build:

  • Bump the decimal library dependency from ~> 2.1 to ~> 3.0 in mix.exs.

@sourcery-ai

sourcery-ai Bot commented Jun 1, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates the Valdi project’s decimal dependency to the 3.x series to address a security advisory and ensure downstream users pull in the fixed version.

File-Level Changes

Change Details Files
Update the decimal dependency requirement to the 3.x series.
  • Change the mix project dependency specification for decimal from the 2.1 series to the 3.0 series.
  • Ensure downstream projects depending on Valdi will resolve decimal >= 3.0.0 and < 4.0.0.
mix.exs

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've left some high level feedback:

  • Since decimal ~> 3.0 requires Elixir ~> 1.12, consider updating the project’s elixir version in mix.exs and aligning the CI Elixir version so consumers and CI don’t end up with a mismatched toolchain.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Since `decimal ~> 3.0` requires Elixir `~> 1.12`, consider updating the project’s `elixir` version in `mix.exs` and aligning the CI Elixir version so consumers and CI don’t end up with a mismatched toolchain.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@js-ms

js-ms commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

@bluzky your review would be really helpful when you have the time 🙏

@bluzky

bluzky commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Thanks @js-ms, will release update now

@bluzky bluzky merged commit 28ee581 into bluzky:main Jun 2, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants